<!-- LLAMADA A MODELOS --!>
<?php
App::Import('Model', 'User');
App::Import('Model', 'Porcentaje');
$user = new User();
$usuario = $user->find('first', array('conditions' => array('User.id' => $this->Session->read('Auth.User.id'))));
$totalhoyo = $usuario['User']['monto_tmp'];

$modeloPorcentaje = new Porcentaje();
$dcp = $modeloPorcentaje->find('all', array(
    'recursive' => -1,
    'fields' => array('id', 'monto')
        ));
//debug($dcp);
?>  
<!-------------------------------------------------->

<ul class="navigation">    
    <li>
        <a href="#" class="button yellow">
            <div class="arrow"></div>
            <div class="icon">
                <span class="ico-money-bag"></span>
            </div>                    
            <?php //$formatoMoneda = money_format('Bs', $movimiento['Movimiento']['total']); ?>
            <div class="name"><?php echo CakeNumber::currency($totalhoyo, ' '); ?></div>
        </a>  
    </li>

    <li>
        <a href="#bModal" role="button" data-toggle="modal"class="button green" onclick="$('#contenidomodal').load('<?php echo $this->Html->url(array('controller' => 'clientes','action' => 'modalrecargar'));?>');">
            <div class="arrow"></div>
            <div class="icon">
                <span class="ico-printer"></span>
            </div>                  

            <div class="name">FACTURAR</div>
        </a>
    </li>

    <li>
        <a href="#bModal" role="button" data-toggle="modal" class="button blue" onclick="$('#contenidomodal').load('<?php echo $this->Html->url(array('controller' => 'Pedidos','action' => 'modalsolicita'));?>');">
            <div class="arrow"></div>
            <div class="icon">
                <span class="ico-dollar"></span>
            </div>                  

            <div class="name">RECARGAR</div>
        </a>
    </li>

    <li>
        <div class="user">
            <img src="img/examples/users/dmitry_m.jpg" align="left"/>
            <a href="#" class="name">
                <span><?php echo $this->Session->read('Auth.User.nombre'); ?></span>
                <span class="sm"><?php echo 'Dealer'; ?></span>
            </a>
        </div>

        <div class="buttons">            
            <div class="sbutton green navButton">
                <a href="#"><span class="ico-align-justify"></span></a>
            </div>

            <div class="sbutton red">
                <a href="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'salir')); ?>"><span class="ico-off"></span></a>                
            </div>
        </div>
    </li>                
</ul>



<div id="fcAddEvent" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="fcAddEventLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">�</button>
        <h3 id="fcAddEventLabel">Add new event</h3>
    </div>
    <div class="modal-body">
        <div class="row-fluid">
            <div class="span3">Title:</div>
            <div class="span9"><input type="text" id="fcAddEventTitle"/></div>
        </div>
    </div>
    <div class="modal-footer">            
        <button class="btn btn-primary" id="fcAddEventButton">Add</button>            
    </div>
</div> 